home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / JASC After Shot / af100evp.exe / Data1.cab / single.xsl25 < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-11  |  5.8 KB  |  129 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <!DOCTYPE xsl:stylesheet [
  5.     <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
  6. ]>
  7. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  8.     <xsl:template match="/">
  9.         <HTML>
  10.             <xsl:apply-templates/>
  11.         </HTML>
  12.     </xsl:template>
  13.     <xsl:template match="photos">
  14.         <xsl:apply-templates/>
  15.     </xsl:template>
  16.     <xsl:template match="album">
  17.         <xsl:apply-templates select="imagelist"/>
  18.     </xsl:template>
  19.     <xsl:template match="imagelist">
  20.         <xsl:apply-templates select="imageinfo"/>
  21.     </xsl:template>
  22.     <xsl:template match="imageinfo">
  23.         <xsl:element name="ixfile">
  24.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  25. <head>
  26.         
  27.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  28.         <meta name="copyright" content="Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. All rights reserved."/>
  29.         
  30.     </head>
  31.  
  32.         
  33.         <BODY text="#ffffff" background="textures/bktexture11.gif">
  34.         
  35. <table border="2" align="center"><tr><td><table bgcolor="000000" border="0" cellpadding="0" cellspacing="0" width="800" align="center">
  36.   <tr>
  37.    <td><img src="graphics/shim.gif" width="80" height="1" border="0"/></td>
  38.    <td><img src="graphics/shim.gif" width="640" height="1" border="0"/></td>
  39.    <td><img src="graphics/shim.gif" width="80" height="1" border="0"/></td>
  40.    <td><img src="graphics/shim.gif" width="1" height="1" border="0"/></td>
  41.   </tr>
  42.  
  43.   <tr valign="top"><!-- row 1 -->
  44.    <td background="graphics/background_r1_c1.jpg" valign="middle"><div align="center"><xsl:apply-templates select="previous"/></div></td>
  45.    <td background="graphics/background_r1_c2.jpg" valign="bottom"><div align="center"><font face="Arial, Helvetica, sans-serif" size="4" ><b><xsl:value-of select="title"/></b></font></div> </td>
  46.    <td background="graphics/background_r1_c3.jpg" valign="middle"><div align="center"><xsl:apply-templates select="next"/></div></td>
  47.    <td><img src="images/shim.gif" width="1" height="80" border="0"/></td>
  48.   </tr>
  49.   <tr valign="top"><!-- row 2 -->
  50.    <td><img name="background_r2_c1" src="graphics/background_r2_c1.jpg" width="80" height="481" border="0"/></td>
  51.   <td valign="middle" background="graphics/tdbkground.jpg"><div align="center"> <IMG border="1"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  52.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  53.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  54.    <td><img name="background_r2_c3" src="graphics/background_r2_c3.jpg" width="80" height="481" border="0"/></td>
  55.    <td><img src="images/shim.gif" width="1" height="480" border="0"/></td>
  56.   </tr>
  57.   <tr valign="top"><!-- row 3 -->
  58.    <td background="graphics/background_r3_c1.jpg" valign="top"><div align="right"><xsl:choose>
  59.                                                             <xsl:when test="audio_info/@fname[. != '']">
  60.                                                                 <div align="right"><xsl:apply-templates select="audio_info"/></div>
  61.                                                             </xsl:when>
  62.                                                             <xsl:otherwise>
  63.                                                                 <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div></xsl:otherwise>
  64.                                                         </xsl:choose><xsl:choose>
  65.                                                     <xsl:when test="movie_info/@fname[. != '']">
  66.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  67.                                                     </xsl:when>
  68.                                                     <xsl:otherwise>
  69.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  70.                                                     </xsl:otherwise>
  71.                                                 </xsl:choose></div></td>
  72.    <td background="graphics/background_r3_c2.jpg"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:apply-templates select="description">
  73.                                             <!-- recursively apply this template to them -->
  74.                                             <xsl:template>
  75.                                                 <xsl:copy>
  76.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  77.                                                 </xsl:copy>
  78.                                             </xsl:template>
  79.                                         </xsl:apply-templates></font></div><br kludge=""/></td>
  80.    <td><img name="background_r3_c3" src="graphics/background_r3_c3.jpg" width="80" height="80" border="0"/></td>
  81.    <td><img src="images/shim.gif" width="1" height="80" border="0"/></td>
  82.   </tr>
  83.  
  84. </table></td></tr></table>
  85.         
  86.         
  87.         </BODY>
  88.         
  89.         </xsl:element>
  90.     </xsl:template>
  91.     <xsl:template match="audio_info">
  92.         <xsl:if match="audio_info[@fname != '']">
  93.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  94.                 <img border="0" src="graphics/sound.gif"/></A>
  95.         </xsl:if>
  96.     </xsl:template>
  97.     <xsl:template match="movie_info">
  98.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  99.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  100.     </xsl:template>
  101.         <xsl:template match="previous">
  102.         <xsl:value-of/>
  103.         <xsl:choose>
  104.             <xsl:when match="previous[@fname != '']">
  105.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  106.                     <img src="buttons/pointleft.gif"  border="0"/></A>
  107.             </xsl:when>
  108.             <xsl:otherwise>
  109.                 <img src="graphics/transparenth120.gif" width="1" height="1"  border="0"/>
  110.                 
  111.             </xsl:otherwise>
  112.         </xsl:choose>
  113.     </xsl:template>
  114.     <xsl:template match="next">
  115.         <xsl:value-of/>
  116.         <xsl:choose>
  117.             <xsl:when match="next[@fname != '']">
  118.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  119.                     <img src="buttons/pointright.gif" border="0"/></A>
  120.             </xsl:when>
  121.             <xsl:otherwise>
  122.                 <img src="graphics/transparenth120.gif" width="1" height="1" border="0"/>
  123.             </xsl:otherwise>
  124.         </xsl:choose>
  125.  
  126.         
  127.     </xsl:template>
  128. </xsl:stylesheet>
  129.